%%%-------------------------------------------------------------------
%%% @author root
%%% @copyright (C) 2017, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 24. Aug 2017 上午9:31
%%%-------------------------------------------------------------------
-module(emqttd_debug).
-author("root").

%% API
-export([debug/0]).


loop_sleep() ->
	timer:sleep(5000),
	loop_sleep().

debug() ->
	%% Start your dependencies here
    application:start(gproc),
    application:start(syntax_tools),
    application:start(compiler),
    application:start(goldrush),
    application:start(lager),
    application:start(gen_logger),
    application:start(esockd),
    application:start(crypto),
    application:start(inets),
    application:start(asn1),
    application:start(public_key),
    application:start(ssl),
    application:start(xmerl),
    application:start(mochiweb),
    application:start(pbkdf2),
    application:start(lager_syslog),
    application:start(emqttd),
    application:get_env(emqttd, emq),
    application:get_env(emqttd, acl),
%%    observer:start(),
	loop_sleep().
